package com.nengchuan.eic.nceconomy.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @description: 三维测算文件保存DTO
 * @author: panwen
 * @create: 2020/05/25 15:28
 * @version：1.0.0
 */
@ApiModel
@Data
public class SwFileSaveDTO {
    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "目录ID")
    @NotNull(message = "directoryId不能为null")
    @Min(value = 1,message = "directory不符合格式")
    private Long directoryId;

    @ApiModelProperty(value = "文件类型 1-GIM模型  2-DGN模型")
    @Max(value = 2,message = "文件类型值范围为1~2")
    @Min(value = 1,message = "文件类型值范围为1~2")
    private Integer fileType;

    @ApiModelProperty(value = "状态 1-发布成功")
    @Max(value = 1,message = "文件类型值范围为1")
    @Min(value = 1,message = "文件类型值范围为1")
    private Integer status;

    @ApiModelProperty(value = "项目类型 1-线路工程 2-安装工程")
    @Min(1)
    @Max(2)
    @NotNull
    private Integer projectType;

    @ApiModelProperty(value = "排序字段")
    private Integer sort;
    @ApiModelProperty(value = "gim的ossId")
    @NotNull
    private  Long ossId;

    @ApiModelProperty(value = "补充文件的ossId")
    private  Long excelId;
}
